package com.fh.fruit.service.count.impl;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.fruit.service.count.CountManager;
import com.fh.fruit.service.count.EPManager;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author joe
 */
@Service("EPManager")
public class EPService implements EPManager {
	
    @Resource(name = "daoSupport")
    private DaoSupport dao;

    @SuppressWarnings("unchecked")
	@Override
	public List<Map<String, Object>> getEPAllCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("EPMapper.getEPAllCount", page);
	}

	@Override
	public List<Map<String, Object>> getEPAtherCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("EPMapper.getEPAtherCount", page);
	}

	@Override
	public List<Map<String, Object>> getEPGoodslistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("EPMapper.getEPGoodslistPage", page);
	}

	@Override
	public List<Map<String, Object>> getEPSalesDetailslistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("EPMapper.getEPSalesDetailslistPage", page);
	}

	@Override
	public List<Map<String, Object>> getEPRewardDetailslistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("EPMapper.getEPRewardDetailslistPage", page);
	}

	

}
